package com.wing.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.device.model.entity.Maintenance;
import com.wing.device.model.response.MaintenanceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-08-19 16:15
 **/
@Mapper
public interface MaintenanceDao extends BaseMapper<Maintenance> {
    /**
     * 查询保养任务列表
     * @param pg
     * @param map
     * @return
     */
    List<Maintenance> list4app(@Param("page")  Page<Maintenance> pg,@Param("map") Map map);

    /**
     * 查询维保详情
     * @param id
     * @return
     */
    MaintenanceVo getMaintenanceBy(@Param("id") Long id, @Param("databaseUser") String databaseUser);
}
